@extends('layout.index')
@section('title','轮播图添加')
@section('content')
 <script type="text/javascript" charset="utf-8" src="/adminHTML/UEditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/adminHTML/UEditor/ueditor.all.min.js"> </script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="/adminHTML/UEditor/lang/zh-cn/zh-cn.js"></script>
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
		<span>轮播图添加</span>
	</div>
	<div class="mws-panel-body no-padding">
		<form action="/admin/carousel/insert" enctype="multipart/form-data" method="post" class="mws-form">
		
			@if (count($errors) > 0)
				<div class="mws-form-message error">
				添加失败
					<ul>
						@foreach ($errors->all() as $error)
							<li>{{ $error }}</li>
						@endforeach
					</ul>
				</div>
			@endif
			<div class="mws-form-inline">
				<div class="mws-form-row">
					<label class="mws-form-label">轮播图名</label>
					<div class="mws-form-item">
						<input type="text" name="imgname" class="small">
					</div>
				</div>
				
				<div class="mws-form-row">
                	<label class="mws-form-label">轮播图片</label>
                	<div class="mws-form-item">
                    	<div class="small" style="position: relative;" class="fileinput-holder">
	                    	<input type="file" class="required" name="image" style="position: absolute; top: 0px; right: 0px; margin: 0px; cursor: pointer; font-size: 999px; opacity: 0; z-index: 999;">
                    	</div>
                        <label style="display:none" generated="true" class="error" for="picture"></label>
                    </div>
                </div>
                
				{{csrf_field()}}
			</div>
			<div class="mws-button-row">
				<input type="submit" class="btn btn-primary" value="提交">
				<input type="reset" class="btn btn-inverse" value="重置">
			</div>
		</form>
	</div>    	
</div>

@endsection